package main

import (
	"net/http"
	"bufio"
	"fmt"
	"io/ioutil"
)

func main() {
	resp, err := http.Get("http://www.stmbuy.com")
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	if resp.StatusCode != http.StatusOK {
		fmt.Println(resp.StatusCode)
		return
	}

	r := bufio.NewReader(resp.Body)
	contents, _ := ioutil.ReadAll(r)
	fmt.Printf("%s", contents)
}
